package com.sinoglobal.ningxia.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.RelativeLayout;
import com.sinoglobal.ningxia.R;

/**
 * @author qiwx
 * @createdate 2014-7-9 上午11:59:06
 * @Description: 设置布局是否拦截子控件View
 */
public class MyRelativeLayout extends RelativeLayout {
	private boolean isIntercept = false;

	public MyRelativeLayout(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	@Override
	public boolean onInterceptTouchEvent(MotionEvent ev) {
		//Auto-generated method stub
		return isIntercept;
	}

	public void setIntercept(boolean flag) {
		isIntercept = flag;
	}

}
